from django_socio_grpc import generics
from .models import Network, File, Mount, Process
from .serializers import NetworkProtoSerializer, FileProtoSerializer, MountProtoSerializer, ProcessProtoSerializer

class NetworkService(generics.AsyncModelService):
    queryset = Network.objects.all()
    serializer_class = NetworkProtoSerializer
    
class FileService(generics.AsyncModelService):
    queryset = File.objects.all()
    serializer_class = FileProtoSerializer
    
class MountService(generics.AsyncModelService):
    queryset = File.objects.all()
    serializer_class = MountProtoSerializer

class ProcessService(generics.AsyncModelService):
    queryset = Process.objects.all()
    serializer_class = ProcessProtoSerializer
